<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>

	<h:outputStylesheet library="css" name="login-style.css" />
	<title>Вход</title>

</h:head>

<h:body style="height: auto;">
	<div id="wraper">
		<div id="header">
			<h1>
				<h:outputText value="Login" />
			</h1>
		</div>
		<div id="login">

			<h:form id="login-form">
				<h:outputText value="#{loginBean.warning}" styleClass="warning" />
				<table>
					<tr>
						<td><h:outputText value="Username:" /></td>
						<td><h:inputText label="Username" id="username"
								value="#{loginBean.username}"
								requiredMessage="*Field is required"
								validatorMessage="*Length is less than allowable minimum of '5'"
								required="true">
								<f:validateLength minimum="5" maximum="15" />
							</h:inputText></td>
						<td><h:message for="username" styleClass="warning" /></td>
					</tr>
					<tr>
						<td><h:outputText value="Password:" /></td>
						<td><h:inputSecret label="Password" id="password"
								value="#{loginBean.password}"
								requiredMessage="*Field is required"
								validatorMessage="*Length is less than allowable minimum of '5'"
								required="true">
								<f:validateLength minimum="5" maximum="15" />
							</h:inputSecret></td>
						<td><h:message for="password" styleClass="warning" /></td>
					</tr>
				</table>
				<h:commandButton value="Login" action="#{loginBean.login}"
					styleClass="buttonLogin" />
				<h:commandButton value="New registration" action="registration"
					immediate="true" styleClass="buttonRegister" />
			</h:form>

		</div>
		<div id="footer"></div>
	</div>
</h:body>

</html>